package multipleyes.server

import java.security.Principal

import org.springframework.messaging.handler.annotation.MessageMapping
import org.springframework.messaging.handler.annotation.SendTo

class ExampleController {

    def index() {}

    @MessageMapping("/hello")
    protected String sayHello(HelloMessage hello) {
		println hello.hello
        return "hello from " + hello.hello
    }
	
	@SendTo("/topic/hello")
	protected String sayHello2(HelloMessage hello) {
		println hello.hello
		return "hello from " + hello.hello
	}
}
